Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Initial Speakers Endpoint #273

Merged
merged 2 commits into from
Nov 22, 2021

Conversation

jenslauterbach
Copy link
Contributor

Note: This PR is stacked on top of #272

The endpoint outputs basic information about speakers, including an
endpoint for speaker details. At the moment there is no relationship to
other entities yet. This will be added at a later point in time, like
for example the talks the speaker has given or will give or the events
the speaker presented at.

I have changed the serialisation of the image field to show an empty string instead of null.

Example output of /api/speakers:

[
    {
        "id": "ingo-albrecht",
        "url": "http://localhost:8000/api/speakers/ingo-albrecht/",
        "name": "Ingo Albrecht",
        "short_biography": "My short bio",
        "position": "",
        "image": ""
    },
    {
        "id": "alexander-richter",
        "url": "http://localhost:8000/api/speakers/alexander-richter/",
        "name": "Alexander Richter",
        "short_biography": "My short bio",
        "position": "",
        "image": "http://localhost:8000/media/speaker_public/0c4aeb7a06d7f7e33587b997c509a0d73faa1cb3dc04ec56a6698725_thumbnail.png"
    }
]

Minor update to the existing code for the session list. The only real
change is that the "id" is now the slug of the Talk and the "url" uses
the talks slug instead of the pk.

Further improvements will be made to the serializer, once the other
endpoints/serializers are done.
The endpoint outputs basic information about speakers, including an
endpoint for speaker details. At the moment there is no relationship to
other entities yet. This will be added at a later point in time, like
for example the talks the speaker has given or will give or the events
the speaker presented at.
@jenslauterbach jenslauterbach self-assigned this Nov 21, 2021
@coveralls
Copy link

Pull Request Test Coverage Report for Build 1487266680

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.06%) to 99.5%

Totals Coverage Status
Change from base Build 1285790417: -0.06%
Covered Lines: 3772
Relevant Lines: 3791

💛 - Coveralls

@jenslauterbach
Copy link
Contributor Author

@jandd Once we finalised business logic issues I'll be writing unit tests. So lets figure out how the initial endpoint should look like and be serialised first.

@jenslauterbach jenslauterbach requested a review from jandd November 21, 2021 17:35
@jandd jandd merged commit 7e38e8e into devdaydresden:development Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants